package com.xnx3.wangmarket.admin.service.impl;

import com.xnx3.j2ee.dao.SqlDAO;
import com.xnx3.wangmarket.admin.Func;
import com.xnx3.wangmarket.admin.entity.ColumnType;
import com.xnx3.wangmarket.admin.entity.Site;
import com.xnx3.wangmarket.admin.service.ColumnTypeService;
import com.xnx3.wangmarket.admin.vo.ColumTypeVo;
import com.xnx3.wangmarket.admin.vo.ColumnTypeListVo;
import com.xnx3.wangmarket.admin.vo.TemplatePageListVO;
import com.xnx3.wangmarket.admin.vo.TemplatePageVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;

@Service("ColumnTypeService")
public class ColumnTypeImpl implements ColumnTypeService {

    @Resource
    private SqlDAO sqlDAO;
    @Override
    public List<ColumnType> getColumnTypeListByCache() {

       return sqlDAO.findBySqlQuery("select * from column_type", ColumnType.class);

    }
}
